<%@ page contentType="text/html; charset=gb2312" language="java" import="java.sql.*" errorPage="" %>
<%@include file="getusersession.jsp"%>
<%
request.setCharacterEncoding("gb2312");
%>
<jsp:useBean id="data" scope="page" class="dsp.web.Data"/>
<%
String path = request.getRealPath("/");
data.del(path, Integer.parseInt(request.getParameter("id")));

if(data.isStatus()){
	response.setHeader("Pragma", "no-cache");
	response.setHeader("Expires", "0");
	response.sendRedirect("validate.jsp");}
else{
	out.println("<script language=javascript> alert('"+ data.getMsg() + "'); location.href='validate.jsp';</script>");	
}
%>